﻿using BCCommon.Enums;
using BCCommon.FreightEnums;
using BCCommon.PaymentEnums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.Payment.Payment
{
    /// <summary>
    /// 充值请求
    /// </summary>
    public class RechargeRequestDto
    {
        private Dictionary<string, string> parameters = new Dictionary<string, string>();

        /// <summary>
        /// 订单类型。
        /// </summary>
        [Display(Name = "订单类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public FlowType OrderType { get; set; }

        /// <summary>
        /// 充值金额。
        /// </summary>
        [Display(Name = "充值金额")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 支付渠道。
        /// </summary>
        [Display(Name = "付款渠道")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public PaymentChannelType ChannelType { get; set; }

        /// <summary>
        /// 操作系统。
        /// </summary>
        [Display(Name = "操作系统")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public SourceOSType OSType { get; set; }

        /// <summary>
        /// 设备类型。
        /// </summary>
        [Display(Name = "设备类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public SourceDeviceType DeviceType { get; set; }

        /// <summary>
        /// 设备编号。
        /// </summary>
        [Display(Name = "设备编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string DeviceId { get; set; }

        /// <summary>
        /// 参数。
        /// </summary>
        [Display(Name = "参数")]
        public Dictionary<string, string> Parameters
        {
            get { return this.parameters; }
            set { this.parameters = value; }
        }
    }
}
